Available server determination

ABSTRACT

In a method, a first available server is determined among one or more servers in response to a request packet. The network time from the first available server is applied to a client to synchronize its system clock.

FIELD OF THE INVENTION

[0001] This invention relates generally to computer networks. More particularly, the invention pertains to synchronization of time within a network.

BACKGROUND OF THE INVENTION

[0002] Conventional computer systems typically maintain an internal clock (e.g., a system clock) to keep track of the date and the time of day. Accurate time and date measurements are required in a wide variety of applications, e.g., managing and tracking electronic mail (email), timing back-ups of data on a network, synchronizing communications between clients and servers, managing multimedia teleconferences, etc. Time clocks maintained by most computer systems tend to be subject to a certain amount of error, or “drift”. Therefore, it becomes necessary to synchronize such clocks to an accurate reference clock at various times to thereby increase accuracy in applications.

[0003] A number of solutions have been developed to synchronize the system clocks of computer systems. In one solution the user of a computer system manually adjusts the clock whenever the clock appears to have drifted. This technique, however, is both inconvenient for the user and subject to its own inaccuracies.

[0004] A more sophisticated solution makes use of a server operating on a network, such as the Internet. The server computer system maintains a highly accurate time clock, such as an atomic clock, and provides accurate time readings to other computer systems on the network using a communication protocol such as Network Time Protocol (NTP) or Simple Network Time Protocol (SNTP). In this type of arrangement, a client computer system may send a request for an accurate time reading via the Internet to an NTP or SNTP server when it is necessary to synchronize its internal clock. The request may be routed to one of a number of secondary servers that function as intermediaries between the client systems requiring clock synchronization and a primary NTP or SNTP server. The use of such secondary servers is generally intended to reduce the loading on the primary NTP or SNTP server. A primary NTP or SNTP server may be maintained, for example, by a government entity, while access to the primary NTP or SNTP servers is regulated by secondary NTP or SNTP servers maintained, for example, by universities and business enterprises, for use by their students and employees, respectively.

[0005] The known solutions, however, suffer from certain drawbacks and disadvantages. An exemplary problem associated with known NTP and SNTP based clock synchronization techniques is that the secondary servers may tend to become overloaded by synchronization requests. This problem may be more common in those secondary servers that serve large networks. A large business enterprise, for example, may maintain a secondary server that serves hundreds or thousands of client systems. Thus, the occurrence of a large number of synchronization requests within a short period of time may significantly slow down operation of the secondary server. This effect is undesirable, especially if the secondary server is also responsible for other services.

[0006] Other problems associated with known clock synchronization techniques are inconvenience to the user and disruption of the user's activities. Synchronization of a computer system's time clock is typically performed under the control of network application software executing on the computer system, which operates the computer system's communication device to access a network server. In a home environment, in which access to the Internet is typically provided through the use of a modem, the network software must perform a modem dial out routine to establish a connection to the Internet. It is undesirable for a computer system to initiate a dial out on its own whenever clock synchronization is required, as doing so may be disruptive to the user. Consequently, network software products are commonly configured to synchronize the time clock only when it is determined that an active network connection exists. This approach has the disadvantage that, in a home situation, the time clock is synchronized only when the user actually accesses the Internet, which may not be sufficiently frequent to maintain the accuracy of the clock.

SUMMARY OF THE INVENTION

[0007] According to one embodiment, the present invention pertains to a method for synchronizing a clock in a client with a network time from a server. In the method, a request packet is transmitted and one or more data packets from at least one server is received in response to the request packet. The one or more data packets are sorted based on the order of receipt of each of the one or more data packets. A test is performed to determine the first synchronized packet from the one or more data packets. In addition, a first synchronized server is selected in response to finding the first synchronized packet.

[0008] According to another embodiment, the present invention pertains to an apparatus for synchronizing a system clock in a client. The apparatus includes means for transmitting a request for time synchronization; means for receiving responses from a plurality of servers; means for determining; means for storing the order of receipt of the responses; and means for determining whether any of the responses is from a synchronized server.

[0009] According to yet another embodiment, the present invention relates to a system for synchronizing a system clock in a client. The system includes a time sync module configured for storage and execution on the client. In addition, the time sync module is operable to transmit a request for time synchronization to one or more servers and to receive responses from the one or more servers. The time sync module is further configured to determine whether the responding servers are synchronized and the order in which the servers responded, and to apply the network time from the first synchronized server to respond.

[0010] According to a further embodiment, the present invention pertains to a method. In the method, a first available server is determined among one or more servers in response to a request packet. In addition, a network time from said first available server is applied.

[0011] In accordance with another embodiment, the present invention relates to a computer readable storage medium on which is embedded one or more computer programs. The one or more computer programs implements a method and includes a set of instructions for determining a first available server among a plurality of servers in response to a request packet and applying a network time from said first available server.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying figures incorporated in and forming part of the specification, illustrate several aspects of the present invention, and together with the description serve to explain principles of the invention. In the figures:

[0013]FIG. 1 illustrates a simplified diagram of an exemplary network according to an embodiment of the invention;

[0014]FIG. 2 illustrates a block diagram of an exemplary computing platform in which an embodiment of the invention may be implemented;

[0015]FIG. 3 illustrates an exemplary block diagram of an architecture for a network device shown in FIG. 1 in accordance with an embodiment of the invention;

[0016] FIGS. 4A-4B, collectively, illustrate a flow diagram for an operational mode of the time sync module shown in FIG. 3 according to an embodiment of the invention;

[0017] FIGS. 5A-5B, together, illustrate a flow diagram according to another embodiment of the present invention; and

[0018]FIG. 6 illustrates a flow diagram illustrating a manner of operating a server according to an embodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

[0019] For simplicity and illustrative purposes, the principles of the present invention are described by referring mainly to an exemplary embodiment thereof. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent however, to one of ordinary skill in the art, that the present invention may be practiced without limitation to these specific details. In other instances, well known methods and structures have not been described in detail so as not to unnecessarily obscure the present invention.

[0020] An embodiment of the present invention pertains to synchronizing clocks in network devices, e.g., printers, photocopiers, personal computers, and like devices. More particularly, a time synchronization (hereinafter referred to as a “time sync”) module executing on a network device may be configured to synchronize the system clock of a network device to a network server. The time sync module may perform the synchronization utilizing the Simple Network Time Protocol (SNTP). The time sync module may operate in conjunction with the client software executing on the network device. Alternatively, the time sync module may be integrated within the client software.

[0021] In accordance with one embodiment of the present invention, a time sync module may be configured to broadcast (or multicast) a synchronization request message to a network, where the network may contain multiple network servers. The time sync module may be configured to analyze data packets from responding network servers to determine if a responding server is synchronized. If the time sync module determines that a responding server is synchronized, the time sync module may use the time from a response packet of the first responding synchronized server and update the system clock for the network device.

[0022] In another embodiment of the present invention, a time sync module may be configured to broadcast (or multicast) a synchronization request message to a network, where the network may contain multiple network servers. The time sync module may sort the response packets from the responding network servers. The time sync module may organize the response packets into two groups on the basis of whether the server is synchronized: (1) if the responding server is synchronized, the server address and corresponding network time is placed into one ordered group based on order of receipt; and (2) if the responding server is non-synchronized, the server address and corresponding network time is placed in a second ordered group based on order of receipt.

[0023] If the time sync module receives response packets from synchronized servers, the time sync module may be configured to calculate an average time and standard deviation for the synchronized servers. The time sync module may then choose the first synchronized server that falls within a given multiple of the calculated standard deviation by order in the group. The time sync module may subsequently use the time from the selected network server to update the system clock.

[0024] If the time sync module determines that only non-synchronized network servers responded, the time sync module may be configured to calculate an average time and standard deviation for the non-synchronized servers. The time sync module may then choose the first non-synchronized server that falls within a given multiple of the calculated standard deviation by order of receipt in the group. The time sync module may subsequently use the time from the selected network server to update the system clock.

[0025] Accordingly, a network device may receive replies from network servers that are substantially less busy and closest (in network terms) before the network device receives replies from more heavily loaded or network servers that are located at relatively long distances, by utilizing an embodiment of the time sync module. By selecting the first synchronized server that falls within the selected multiple of the standard deviation, the load on multiple servers and the load on the network may be better balanced. In a large network configuration, this may substantially reduce traffic beyond a subnet.

[0026]FIG. 1 illustrates a block diagram of an exemplary network 10 where an embodiment of the present invention may be practiced. It should be readily apparent to those of ordinary skill in the art that the network 10 depicted in FIG. 1 represents a generalized schematic illustration and that other components may be added or existing components may be removed or modified without departing from the scope of the present invention.

[0027] As shown in FIG. 1, the network 10 may be a local area network (LAN), a wide area network, a global telecommunications system, e.g., the Internet, or some combination thereof. In addition, the network 10 may include a plurality of sub-networks 12 and 14 connected to form the network 10 via routers 18. Alternatively, network switches, bridges and other similar devices may be substituted or used in conjunction with the routers 18.

[0028] The network 10, including the sub-networks 12 and 14, may include a plurality of servers 20-30. Some of the servers 20-30 may comprise servers, e.g., primary or secondary servers. The remaining servers 20-30 may be designed to perform network services (e.g., provide software applications, data storage, etc.) in the network 10. In addition, some of the servers 20-30 may perform a combination of various functions (e.g., time services, data storage, etc.).

[0029] The network 10 may also include a plurality of network devices 32-42. The network devices 32-42 may include personal computers, laptops, personal digital assistants, printers and like devices, that may be attached to the network 10 through respective network interfaces.

[0030] The network 10 and the sub-networks 12 and 14 may provide communication services to the clients 32-43 by wired protocol such as IEEE 802.3, token ring, X.25, etc., wireless protocols such as Cellular Digital Packet Data, Mobitex, IEEE 801.11b, Wireless Application Protocol, Global System for Mobiles, etc., or a combination thereof.

[0031]FIG. 2 illustrates a block diagram of an exemplary computing platform 200 that is representative of some or all of the network devices 32-42 and/or servers 20-30 in FIG. 1. It should be readily understood by those of skill in the art that many variations may be made upon the illustrated configuration consistent with the techniques described herein. For example, for a printer, the computing platform 200 may be changed to omit a mouse and a removable storage unit.

[0032] The computing platform 200 includes one or more processors, such as processor 202, configured to provide an execution platform for a network device, such as network device 32 (FIG. 1). Commands and data from the processor 202 may be communicated over a communication bus 204.

[0033] The computing platform 200 also includes a main memory 206, preferably Random Access Memory (RAM), where the software for the network device 32 may be executed during runtime. In addition, a secondary memory 208 may also be included in the computing platform 200. The secondary memory 208 includes, for example, a hard disk drive 210 and/or a removable storage drive 212, representing a floppy diskette drive, a magnetic tape drive, a compact disk drive, and the like. The removable storage drive 212 may store a copy of the software for the storage device 32. In addition, the removable storage drive 212 may read from and/or write to a removable storage unit 214, e.g., floppy disk, compact disc, etc.

[0034] A user may interface with the computing platform 200 through a keyboard 216, a mouse 218, and a display 220. A display adapter 222 may be interfaced between the communication bus 204 and the display 220 to receive display data from the processor 202 and to convert the display data into display commands visible on the display 220. The computing platform 200 may interface with a network through a network interface 224.

[0035] Some or all aspects of the time sync module described herein may be embodied in software. For instance, the time sync module may be carried out in a client 32-42 in response to its processor 202 executing sequences of instructions contained in memory, e.g., memory 208. The instructions may be executed from the main memory 206, e.g., RAM, and may be loaded from a persistent store, such as a mass storage device and/or from one or more other remote network devices. In the latter case, the network device may transmit a sequence of instructions over a network to a remote network device in response to a message transmitted to the network device. As the network device receives the instructions via the network connection from the remote network device, the network device stores the instructions in memory, e.g., for later execution or for execution during receipt of the instructions.

[0036]FIG. 3 illustrates a block diagram of an exemplary architecture 300 for a network device 32-42 shown in FIG. 1 in accordance with an embodiment of the invention. It should be understood to those of ordinary skill in the art that the architecture 300 illustrated in FIG. 3 represents a generalized illustration and that other components may be added or existing components may be removed or modified without departing from the scope of the present invention.

[0037] As shown in FIG. 3, the architecture 300 includes a time sync module 310, an operating system 320, and a network interface 330. The time sync module 310 may be configured to send (e.g., multicast, broadcast, etc.) a synchronization request message to a plurality of network servers, e.g., servers 20-30, when invoked. The time sync module 310 may also be configured to analyze response packets from responding network servers to determine if the responding server is synchronized. As is described in greater below, the analysis of the response packets may be used to determined whether the responding servers are synchronized or non-synchronized. If the time sync module 310 determines that the server is synchronized, the time sync module 310 may use the time from a response packet and update the system clock for the client executing the time sync module.

[0038] In another embodiment of the present invention, the time sync module 310 may be configured to send a synchronization request message to a plurality of servers, e.g., servers 20-30. The time sync module 310 may sort the response packets from the responding network servers according to the order of their receipts. The time sync module 310 may organize the response packets into two groups on the basis of the synchronization of the responding server: (1) if the responding server is synchronized, the server address and corresponding network time may be placed in one ordered group based on the order of receipt; and (2) if the responding server is non-synchronized, the server address and corresponding network time may be placed in a second ordered group based on the order of receipt.

[0039] The time sync module 310 may be configured to calculate an average time and standard deviation from the data packets received from the synchronized servers. The time sync module 310 may then choose the first synchronized server that falls within a given multiple of the calculated standard deviation by order in the group. The time sync module 310 may subsequently use the time from the selected network server to update the system clock.

[0040] If the time sync module 310 determines that no synchronized network servers responded, the time sync module 310 may be configured to calculate an average time and standard deviation for the non-synchronized servers. The time sync module 310 may then choose the first non-synchronized server that falls within a given multiple of the calculated standard deviation by order of receipt in the group. The time sync module 310 may subsequently use the time from the selected network server to update the system clock.

[0041] The time sync module 310 may further be configured to interface with the operating system 320. More specifically, the time sync module 310 may be interfaced with the operating system 320 through an application program interface (API, not shown). The operating system 320 may be configured to manage the software applications, data and respective hardware components (e.g., displays, disk drives, etc.) of the network device, e.g., 32-42. MICROSOFT WINDOWS family of operating systems, UNIX, HEWLETT-PACKARD HP-UX, LINUX, RIM OS, and other similar operating systems may implement the operating system 320.

[0042] The operating system 320 may be coupled with the network interface 330 through a device driver (not shown). The network interface 330 (e.g., network interface 224 shown in FIG. 2) may be configured to provide a communication port for network device, e.g., 36, over the network 10 (shown in FIG. 1). The network interface 330 may be implemented using a network interface card, a wireless interface card or other similar input/output device.

[0043] FIGS. 4A-4B, collectively, illustrate a flow diagram for an exemplary operational mode 400 of the time sync module 310 shown in FIG. 3 according to an embodiment of the invention. In addition, FIGS. 5A-5B, collectively, illustrate a flow diagram for an exemplary operational mode 500 of the time sync module 310 shown in FIG. 3 according to another embodiment of the invention. It should be readily apparent to those of ordinary skill in the art that the operational modes 400 and 500 represent generalized illustrations and that other steps may be added or existing steps may be removed or modified without departing from the scope of the present invention.

[0044] The steps illustrated in the operational modes 400 and 500 may each be contained as a utility, program, subprogram, in any desired computer accessible medium. In addition, the operational modes 400 and 500 may each be embodied by a computer program, which can exist in a variety of forms both active and inactive. For example, each of the operational modes 400 and 500 may exist as software program(s) comprised of program instructions in source code, object code, executable code or other formats. Any of the above can be embodied on a computer readable medium, which include storage devices and signals, in compressed or uncompressed form.

[0045] Exemplary computer readable storage devices include conventional computer system RAM, ROM, EPROM, EEPROM, and magnetic or optical disks or tapes. Exemplary computer readable signals, whether modulated using a carrier or not, are signals that a computer system hosting or running the computer program can be configured to access, including signals downloaded through the Internet or other networks. Concrete examples of the foregoing include distribution of the programs on a CD-ROM or via Internet download. In a sense, the Internet itself, as an abstract entity, is a computer readable medium. The same is true of computer networks in general. Although particular reference is made in the following descriptions of FIGS. 4A-4B and FIGS. 5A-5B to the sync module 310 illustrated in FIG. 3 as performing certain functions, it is to be understood that those functions may be performed by any electronic device capable of executing the above-described functions.

[0046] Referring first to FIG. 4A, the time sync module 310 may be configured to be in an idle state at step 405. The time sync module 310 may be configured to generate a request packet at step 410. More particularly, the request packet may be generated by instantiating an SNTP packet with zeros. In addition, the time sync module 310 may be configured to set the version field to 3 and also the mode field to 3 of the SNTP packet. At step 415, the time sync module 310 may be configured to multicast the request packet, for example, with an address of 244.0.0.1 on port 123. Alternatively, the time sync module 310 may be configured to format the request packet in any known manner to perform a multicast to a plurality of servers.

[0047] The time sync module 310 may be configured to determine whether any response packets have been received at step 420. At step 425, it is determined whether any responses have been received within a predetermined amount of time. Thus a timeout may be implemented by a select ( ) command. Alternatively, a timer, e.g., a timer module (not shown) may be provided in the network device 32-42, may be initiated upon performance of the multicast. It should be understood that the predetermined amount of time may be set according to individual preferences and may vary depending upon various factors, e.g., time synchronization optimization, load on the servers, etc.

[0048] If a time out has not occurred at step 425, the operational mode 400 may return to step 420 to determine whether any response packets have been received. This process may continue until a time out occurs at step 425.

[0049] If at least one response packet is not received within the predetermined amount of time, the time sync module 310 may be configured to perform a broadcast of the request packet, for example, with an address of 255.255.255.255 on port 123, at step 430. It should be understood that the broadcast may be performed with any reasonably suitable address and port. At step 435, it is determined whether any response packets have been received. At step 440, it is determined whether a time out has occurred. In this regard, a timer, e.g., a timer module (not shown) may be provided in the network device 32-42, may be initiated upon performance of the broadcast. Alternatively, the time measurement may be a continuation of the timer initiated upon the performance of the multicast. In any respect, it should be understood that the predetermined amount of time may be set according to individual preferences and may vary depending upon various factors, e.g., time synchronization optimization, load on the servers, etc.

[0050] If a time out has not occurred at step 440, the operational mode 400 may return to step 420 to determine whether any responses from the multicast (step 415) or the broadcast (step 430) have been received. This process may continue until a time out occurs at step 440. If a time out does occur, the operational mode 400 may return the time sync module 310 to the idle state at step 405.

[0051] With reference now to FIG. 4B, if at least one response is received by the time sync module 310 at step 420 or step 435, the data packet(s) from the server(s) associated with the received response packet(s) may be read by the time sync module 310, at step 445. The data packet may contain information pertaining to the server address that sent the response as well as an indication of whether the time is synchronized. The time sync module 310 may receive one or more responses at step 420 or step 435.

[0052] At step 450, the data packet is used to determine whether any of the responding servers is synchronized. In one embodiment, the server may be determined to be synchronized by determining whether the leap indicator field is zero (0), the mode field is four (4), the version field is either three (3) or four (4), the stratum field is in the range of 1-15 inclusive, and the transmit timestamp indicates that the time is greater than Jun. 1, 2001. The above-outlined information may be read from the received data packet(s). It should be understood that a server may be determined as being synchronized in any other reasonably suitable manner generally known to those of ordinary skill in the art.

[0053] If the responding server is synchronized, the network time from that server is applied to update the system clock at step 455. Following application of the network time, the time sync module 310 may be configured to return to the idle state (step 405).

[0054] If none of the responding servers is determined to be synchronized, i.e., the responding server(s) is determined to be non-synchronized, at step 450, it may be determined whether the data packet received from that server is the first packet received, e.g., the first server to respond, at step 460. If the data packet is determined to be the first packet, at step 465, the information contained in the data packet is stored, for example in the main memory 206 (FIG. 2). The time sync module 310 may then read a data packet from another server at step 445 and determine whether that server is synchronized, for example, in the manner described hereinabove.

[0055] At step 460, if it is determined that the data packet is not the first packet, e.g., after repeating steps 445 and 450 at least one time, then the time sync module 310 may determine whether the data packet is the last packet received at step 470. If the data packet is not the last packet, then another data packet may be read at step 445 to determine if the responding server is synchronized. Again, if it is determined that the server is synchronized, the network time from that server may be applied to the system clock at step 455. In this regard, the system clock of the network device may correspond to the network time of the first synchronized server to respond.

[0056] If, at step 470, the data packet is determined to be the last data packet, then the network time from the first stored packet (from step 465) may be applied to the system clock of the network device at step 475. Following application of the network time from the first non-synchronized server, the time sync module 310 may be configured to return to the idle state (step 405).

[0057]FIGS. 5A and 5B, collectively, illustrate a flow diagram of an operational mode 500 according to another embodiment of the invention. Steps 405-440 identical to those steps illustrated in FIG. 4A and described hereinabove. Therefore, a detailed description of steps 405-440 in FIG. 5A is omitted for convenience. Instead, the description provided hereinabove with respect to FIG. 4A is relied upon to support the following description of FIG. 5A.

[0058] In FIG. 5A, beginning at step 420, if any responses are received from any servers, the data packet(s) from the server(s) is read at step 505. At step 510, the data packet(s) is stored in a memory, e.g., memory 210 (FIG. 2). The order of receipt of the data packets and their corresponding servers may also be stored in memory. In addition, the servers may be stored in two categories, one category for synchronized servers and another one for non-synchronized servers. Thus, for example, a database, linked-list, table, etc., (not shown) may be created in the memory 206 with inputs of synchronized servers arranged in the order they were received by the time sync module 310 and non-synchronized servers arranged in the order they were received. It should be understood that the instant embodiment of the invention includes those situations where all of the responding servers are synchronized or non-synchronized.

[0059] This process may continue until a time out occurs, as indicated at step 515. More specifically, prior to the occurrence of the time out, additional data packets from the servers may be read (step 505) and stored (step 510). As stated hereinabove, a timer, e.g., a timer module (not shown) may be provided in the network device 32-42, may be initiated upon receipt of a first data packet. It should be understood that the predetermined amount of time may be set according to individual preferences and may vary depending upon various factors, e.g., time synchronization optimization, load on the servers, etc.

[0060] After the occurrence of the time out at step 515, the time sync module 310 may determine whether any of the responding servers are synchronized at step 520. The determination of whether the responding servers are synchronized may be made in accordance with the manners described hereinabove with respect to FIG. 4B.

[0061] If any packets have been received from synchronized servers, the time sync module 310 may average the network times from these servers at step 525. The time sync module 310 may also calculate a standard deviation of the network times at step 530. At step 535, the time sync module 310 may scan through the ordered list of synchronized servers according to their receipt order and select the first synchronized server that falls within a predetermined multiple of the standard deviation at step 540. The predetermined multiple of the standard deviation may be selected according to individual implementations and may vary according to various considerations, e.g., the level of accuracy required of the system clock in the network device. Thus, for example, where a system clock implementation requires a high level of accuracy, the predetermined multiple of the standard deviation may be set relatively low.

[0062] At step 545, the network time from the server selected at step 540 may be applied to the system clock of the network device. The time sync module 310 may then be configured to return to the idle state at step 405.

[0063] If none of the servers are synchronized (step 520), the time sync module 310 may be configured to average the network times from the responding non-synchronized servers at step 550. The time sync module 310 may also calculate a standard deviation of the network times at step 555. At step 560, the time sync module 310 may scan through the ordered list of non-synchronized servers according to their receipt order and select the first non-synchronized server that falls within a predetermined multiple of the standard deviation at step 565. The predetermined multiple of the standard deviation may be selected according to individual implementations and may vary according to various considerations, e.g., the level of accuracy required of the system clock in the network device. Thus, for example, where a system clock implementation requires a high level of accuracy, the predetermined multiple of the standard deviation may be set relatively low.

[0064] At step 570, the network time from the server selected at step 565 may be applied to the system clock of the network device. The time sync module 310 may then be configured to return to the idle state at step 405.

[0065]FIG. 6 illustrates an exemplary flow diagram for an operational mode 600 of a server, e.g., server 20 shown in FIG. 1 according to an embodiment of the invention. It should be readily apparent to those of ordinary skill in the art that the operational mode 600 represents a generalized illustration and that other steps may be added or existing steps may be removed or modified without departing from the scope of the present invention.

[0066] The steps illustrated in the operational mode 600 may be contained as a utility, program, or subprogram, in any desired computer accessible medium. In addition, the operational mode 600 may be embodied by a computer program, which can exist in a variety of forms both active and inactive. For example, the operational mode 600 may exist as a software program comprised of program instructions in source code, object code, executable code or other formats. Any of the above can be embodied on a computer readable medium, which include storage devices and signals, in compressed or uncompressed form.

[0067] Exemplary computer readable storage devices include conventional computer system RAM, ROM, EPROM, EEPROM, and magnetic or optical disks or tapes. Exemplary computer readable signals, whether modulated using a carrier or not, are signals that a computer system hosting or running the computer program can be configured to access, including signals downloaded through the Internet or other networks. Concrete examples of the foregoing include distribution of the programs on a CD ROM or via Internet download. In a sense, the Internet itself, as an abstract entity, is a computer readable medium. The same is true of computer networks in general.

[0068] A server, e.g., server 20, may be in an idle state at step 605. At step 610, the server may receive a request for a time synchronization, e.g., from time sync module 310. This request may be in any reasonably suitable format, e.g., multicast, broadcast, or the like. In response to the request, the server may generate a response packet including, for example, the network time and the server address, for transmission to the requesting network device at step 615. At step 620, the server may transmit the response packet to the network device where it may be received by the time sync module 310. The server may then return to the idle state at step 605.

[0069] What has been described and illustrated herein is a preferred embodiment of the invention along with some of its variations. The terms, descriptions and figures used herein are set forth by way of illustration only and are not meant as limitations. Those skilled in the art will recognize that many variations are possible within the scope of the invention, which is intended to be defined by the following claims—and their equivalents—in which all terms are meant in their broadest reasonable sense unless otherwise indicated. 

What is claimed is:
 1. A method for synchronizing a system clock in a client with a network time from a server, said method comprising: transmitting a request packet; receiving one or more data packets from at least one server in response to said request packet; testing for a first synchronized packet from said one or more data packets; and selecting a first synchronized server in response to finding the first synchronized packet.
 2. The method according to claim 1, further comprising: applying a network time from the first synchronized server to the system clock of the client.
 3. The method according to claim 1, wherein said step of transmitting said request packet comprises performing a multicast of the time request packet.
 4. The method according to claim 1, further comprising: awaiting responses from said at least one server in response to a timeout value not expiring.
 5. The method according to claim 4, further comprising: performing a broadcast of said request packet in response to said timeout value expiring.
 6. The method according to claim 1, further comprising: sorting said one or more data packets based on the order of receipt of each of said one or more data packets; determining whether a data packet from a non-synchronized server is a first data packet received in response to no synchronized servers responding; and storing said data packet from said non-synchronized server in response to said non-synchronized server being a first non-synchronized server to respond.
 7. The method according to claim 6, further comprising: determining whether said data packet from said non-synchronized server is a last data packet received in response to said non-synchronized server not being the first non-synchronized server to respond; and applying a network time to said client from said stored data packet in response to said data packet from said non-synchronized server being the last data packet received.
 8. The method according to claim 1, further comprising: categorizing responding servers in a synchronized group or a non-synchronized group; and ordering said synchronized group and said non-synchronized group on the basis of order of receipt.
 9. The method according to claim 8, further comprising: averaging network times from said synchronized group.
 10. The method according to claim 9, further comprising: calculating a standard deviation of the network times from said synchronized group.
 11. The method according to claim 10, further comprising: scanning through the ordered synchronized server group; and selecting a first synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 12. The method according to claim 11, further comprising: applying the network time from the first synchronized server to synchronize the system clock on the client.
 13. The method according to claim 8, further comprising: averaging the network times from the data packets of the non-synchronized group.
 14. The method according to claim 13, further comprising: calculating a standard deviation of the network times from the data packets of the non-synchronized group.
 15. The method according to claim 14, further comprising: scanning through the ordered non-synchronized server group; and selecting a first non-synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 16. The method according to claim 15, further comprising: applying the network time from the selected non-synchronized server to synchronize the system clock on the client.
 17. An apparatus for synchronizing a system clock in a client, said apparatus comprising: means for transmitting a request for time synchronization; means for receiving responses from a plurality of servers; means for determining the order of receipt of said responses; and means for determining whether any of said responses is from a synchronized server.
 18. The apparatus according to claim 17, further comprising: means for applying the network time from the first responding synchronized server.
 19. The apparatus according to claim 17, further comprising: means for storing the order of receipt of said responses; means for determining whether a data packet is from a first responding non-synchronized server in response to no synchronized servers responding; and means for storing said data packet in response to said data packet being from the first responding non-synchronized server.
 20. The apparatus according to claim 19, further comprising: means for determining whether the data packet from a non-synchronized server is the last data packet received in response to said non-synchronized server not being the first non-synchronized server to respond; and means for applying a network time on said network device from said stored data packet in response to said data packet from said non-synchronized server being the last data packet received.
 21. The apparatus according to claim 17, wherein said means for determining and storing the order of receipt of said responses comprises means for grouping the responding servers into a synchronized group or a non-synchronized group.
 22. The apparatus according to claim 21, further comprising: means for averaging the network times from the synchronized group.
 23. The apparatus according to claim 22, further comprising: means for calculating a standard deviation of the network times of the synchronized group.
 24. The apparatus according to claim 23, further comprising: means for scanning through the ordered synchronized server group; and means for selecting the first synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 25. The apparatus according to claim 24, further comprising: means for applying the network time from the first synchronized server.
 26. The apparatus according to claim 21, further comprising: means for averaging the network times from the non-synchronized group.
 27. The apparatus according to claim 26, further comprising: means for calculating a standard deviation of the network times of the non-synchronized servers.
 28. The apparatus according to claim 27, further comprising: means for scanning through the ordered non-synchronized server group; and means for selecting a first non-synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 29. The apparatus according to claim 28, further comprising: means for applying the network time from the first non-synchronized server to synchronize the system clock on the client.
 30. A system for synchronizing a system clock in a client, said system comprising: a time sync module configured for storage and execution on said client, wherein said time sync module is operable to transmit a request for time to one or more servers, to receive responses from said one or more servers, to determine whether the responding servers are synchronized or non-synchronized and the order in which the servers responded, and to apply the network time from the first synchronized server to respond.
 31. The system according to claim 30, further comprising: a network; and a plurality of servers; wherein said time sync module is configured to transmit at least one of a multicast and a broadcast request for time synchronization to said plurality of servers through said network.
 32. The system according to claim 30, wherein said time sync module is configured to store a data packet from a first non-synchronized server to respond in response to no synchronized servers responding.
 33. The system according to claim 32, wherein said time sync module is further configured to apply the network time from the stored data packet in response to no further responses from the one or more servers being received.
 34. The system according to claim 30, wherein said time sync module is configured to store ordered groups of synchronized and non-synchronized servers.
 35. The system according to claim 34, wherein said time sync module is configured to average the network times from the synchronized group.
 36. The system according to claim 35, wherein said time sync module is further configured to calculate a standard deviation of the network times.
 37. The system according to claim 36, wherein said time sync module is further configured to scan through the ordered list of synchronized servers and to select a first synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 38. The system according to claim 37, wherein said time sync module is further configured to apply the network time from the first synchronized server to synchronize the system clock on the client.
 39. The system according to claim 34, wherein said time sync module is configured to average the network times from the non-synchronized group.
 40. The system according to claim 39, wherein said time sync module is further configured to calculate a standard deviation of the network times.
 41. The system according to claim 40, wherein said time sync module is further configured to scan through the ordered list of non-synchronized servers and to select a first non-synchronized server that falls within a predetermined multiple of the calculated standard deviation.
 42. The system according to claim 41, wherein said time sync module is further configured to apply the network time from the first non-synchronized server to synchronize the system clock on the network device.
 43. A method comprising: determining a first available server among one or more servers in response to a request packet; and applying a network time from said first available server.
 44. The method according to claim 43, wherein said step of applying the network time from said first available server comprises applying the network time from the first available synchronized server.
 45. The method according to claim 43, further comprising: storing a data packet from a first available non-synchronized server in response to a lack of response from a synchronized server.
 46. The method according to claim 45, further comprising: applying the network time from said stored data packet in response to a final data packet being received.
 47. The method according to claim 43, further comprising: receiving a plurality of data packets from one or more servers; testing for a synchronized packet from said plurality of data packets; and sorting said plurality of data packets based on the order of receipt of the plurality of data packets.
 48. The method according to claim 47, further comprising: categorizing the one or more servers into a synchronized group or a non-synchronized group; and ordering the synchronized group and the non-synchronized group.
 49. The method according to claim 48, further comprising: averaging the network times from the synchronized group.
 50. The method according to claim 49, further comprising: calculating a standard deviation of the network times of the synchronized group.
 51. The method according to claim 50, further comprising: scanning through the ordered synchronized group; selecting a first synchronized server that falls within a predetermined multiple of the calculated standard deviation; and applying the network time from the first synchronized server to synchronize the system clock on the client.
 52. The method according to claim 48, further comprising: averaging the network time from the non-synchronized group.
 53. The method according to claim 52, further comprising: calculating a standard deviation of the network times of the non-synchronized servers.
 54. The method according to claim 53, further comprising: scanning through the ordered non-synchronized group; selecting a first non-synchronized server that falls within a predetermined multiple of the calculated standard deviation; and applying the network time from the first non-synchronized server to synchronize the system clock on the client.
 55. A computer readable storage medium on which is embedded one or more computer programs, said one or more computer programs implementing a method, said one or more computer programs comprising a set of instructions for: determining a first available server among one or more servers in response to a request packet; and applying a network time from said first available server.
 56. The computer readable storage medium according to claim 55, said one or more computer programs further comprising a set of instructions for: wherein said step of applying the network time from said first available server comprises applying the network time from the first available synchronized server.
 57. The computer readable storage medium according to claim 55, said one or more computer programs further comprising a set of instructions for: storing a data packet from a first available non-synchronized server in response to a lack of response from a synchronized server; and applying the network time from said stored data packet in response to a final data packet being received.
 58. The computer readable storage medium according to claim 55, said one or more computer programs further comprising a set of instructions for: receiving a plurality of data packets from one or more servers; testing for a synchronized packet from said plurality of data packets; and sorting said plurality of data packets based on the order of receipt of the plurality of data packets.
 59. The computer readable storage medium according to claim 58, said one or more computer programs further comprising a set of instructions for: categorizing the one or more servers into a synchronized group or a non-synchronized group; ordering the synchronized group and the non-synchronized group; averaging the network times from the synchronized group; and calculating a standard deviation of the network times of the synchronized group.
 60. The computer readable storage medium according to claim 59, said one or more computer programs further comprising a set of instructions for: scanning through the ordered synchronized group; selecting a first synchronized server that falls within a predetermined multiple of the calculated standard deviation; and applying the network time from the first synchronized server to synchronize the system clock on the client.
 61. The computer readable storage medium according to claim 58, said one or more computer programs further comprising a set of instructions for: categorizing the one or more servers into a synchronized group or a non-synchronized group; ordering the synchronized group and the non-synchronized group; averaging the network time from the non-synchronized group; and calculating a standard deviation of the network times of the non-synchronized servers.
 62. The computer readable storage medium according to claim 61, said one or more computer programs further comprising a set of instructions for: scanning through the ordered non-synchronized group; selecting a first non-synchronized server that falls within a predetermined multiple of the calculated standard deviation; and applying the network time from the first non-synchronized server to synchronize the system clock on the client. 